        <table style="width: 100%;" cellpadding="4" cellspacing="0">
        <tr>
            <td class="border2">
                <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                    <td class="block_header">{language text='Mod_Account.my_friends'}</td>
                </tr>
                </table>

{if count($aFriends)}
                <div style="font-size:9pt;" class="color">
{language text='Mod_Account.total_friends' replace1=$aCurrUser.user replace2=$iNumFriends}

<br /><br />

<div style="text-align:center;">

<table style="width:100%;margin-left:auto;margin-right:auto;" cellpadding="4" cellspacing="4">
    <tr>
{foreach from=$aFriends item=aFriend name=friends}
        <td style="width:25%;text-align:center;">
           <a href="{url link='public.user' name=$aFriend.user}">
               {Account::Avatar sUser=$aFriend.user iSize=75 class="pic1" onmouseover="showInfo5('`$aFriend.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();" }
           </a>
        </td>
{if $smarty.foreach.friends.iteration % $iRowSize == 0}
    </tr>
    <tr>
{/if}
{/foreach}
    </tr>
</table>

</div>

  			<div style="padding:8px;text-align:right;">
                        <a class="link_action" href="{url link='public.user.friends' name=$aUser.user}">[ {language text="view_all_my_friends"} ]</a>
                    </div>
                </div>
{else}
<div style="padding:8px;font-size:9pt;text-align:center;">
{language text="Mod_Account.no.friends"}
</div>
{/if}

             </td>
        </tr>
        </table>
        <br />